package amigos;




import org.neo4j.cypher.javacompat.ExecutionEngine;

import daos.SessionManager;
import servicios.Operation;

public class BorrarNodos implements Operation<Void>{

	public Void execute() {
		ExecutionEngine engine = new ExecutionEngine(SessionManager.getGraphSession());
		engine.execute("MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r" );
		return null;
		}

}
